﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace MyLib
{
    public class CacheUtil
    {
        public static void ClearCache()
        {
            DataAccess.ClearInstance();
            ServiceContainer.ClearInstance();
            _table = new Hashtable();
        }

        static Hashtable _table = new Hashtable();
        public static void AddCache(object key, object value)
        {
            _table[key] = value;            
        }

        public static object GetCache(object key)
        {
            return _table[key];
        }
    }
}
